package org.jeecg.modules.xl.aftersale.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 售后单
 * @Author: jeecg-boot
 * @Date:   2024-11-03
 * @Version: V1.0
 */
@ApiModel(value="xl_customer_aftersale对象", description="售后单")
@Data
@TableName("xl_customer_aftersale")
public class XlCustomerAftersale implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**售后工单号*/
	@Excel(name = "售后工单号", width = 15)
    @ApiModelProperty(value = "售后工单号")
    private String workorder;
	/**售后单状态（0:待审批，1:审批通过,2:审批不通过）*/
	@Excel(name = "售后单状态（0:待审批，1:审批通过,2:审批不通过）", width = 15, dicCode = "audit_state")
    @Dict(dicCode = "audit_state")
    @ApiModelProperty(value = "售后单状态（0:待审批，1:审批通过,2:审批不通过）")
    private String woStatus;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String woNote;
	/**售后类型*/
	@Excel(name = "售后类型", width = 15, dicCode = "slt_aftersale_type")
    @Dict(dicCode = "slt_aftersale_type")
    @ApiModelProperty(value = "售后类型")
    private String aftersaleType;
	/**售后原因*/
	@Excel(name = "售后原因", width = 15, dicCode = "slt_aftersale_renson")
    @Dict(dicCode = "slt_aftersale_renson")
    @ApiModelProperty(value = "售后原因")
    private String renson;
	/**订单单号*/
	@Excel(name = "订单单号", width = 15)
    @ApiModelProperty(value = "订单单号")
    private String orderCode;
    /**物流单号*/
    @Excel(name = "物流单号", width = 15)
    @ApiModelProperty(value = "物流单号")
    private String logiCode;
	/**门店编号*/
	@Excel(name = "门店编号", width = 15)
    @ApiModelProperty(value = "门店编号")
    private String storeCode;

    /**门店编号*/
    @Excel(name = "门店名称", width = 15)
    @ApiModelProperty(value = "门店名称")
    private String storeName;

	/**售后商品总数量*/
	@Excel(name = "售后商品总数量", width = 15)
    @ApiModelProperty(value = "售后商品总数量")
    private Double totalNum;
	/**售后商品种数*/
	@Excel(name = "售后商品种数", width = 15)
    @ApiModelProperty(value = "售后商品种数")
    private Integer detailNum;
	/**售后总金额*/
	@Excel(name = "售后总金额", width = 15)
    @ApiModelProperty(value = "售后总金额")
    private Double totalAmount;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**售后凭证*/
	@Excel(name = "售后凭证", width = 15)
    @ApiModelProperty(value = "售后凭证")
    private String woImage;
}
